@import "~font-awesome/less/font-awesome";

/* initial style*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; //确保边距和边框包含在宽度和高度里面
}


/* utils */

.pull-right {
    float: right;
}

.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}

[class*="col-"] {
    float: left;
    padding: 15px;
    // border: 1px solid red;
}

@media only screen and (max-width: 768px) {
    /* For mobile phones: */
    [class*="col-"] {
        width: 100%;
    }
}

.row:after {
    content: "";
    clear: both;
    display: block;
}

/* high level color */

//link
@linkColor: #08c;
@linkColorHover: darken(@linkColor, 15%);
//grey
@black: #000;
@grayDarker: #222;
@grayDark: #333;
@gray: #555;
@grayLight: #999;
@grayLighter: #eee;
@white: #fff;
//important
@blue: #049cdb;
@green: #46a546;
@red: #9d261d;
@yellow: #ffc40d;
@orange: #f89406;
@pink: #c3325f;
@purple: #7a43b6;

/* tag style */

a {
    text-decoration: none;
    &:link {
        color: @linkColor;
    }
    &:visited {
        color: @linkColor;
    }
    &:hover {
        color: @linkColorHover;
    }
    &:active {
        color: @linkColorHover;
    }
}

textarea {
    resize: none;
}


/* Button Component */

.btn {
    background-color: #413d3d;
    color: #fff;
    padding: 4px 8px;
    border-radius: 2px;
    touch-action: manipulation;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    float: left;
}

.btn-primary {
    background-color: @blue;
    border-color: @blue - 20;
    &:hover {
        outline: 0;
        background-color: @blue - 20;
        border-color: @blue - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:focus {
        outline: 0;
        background-color: @blue - 20;
        border-color: @blue - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:active {
        outline: 0;
        background-color: @blue - 40;
        border-color: @blue - 60;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
}

.btn-success {
    background-color: @green;
    border-color: @green - 20;
    &:hover {
        outline: 0;
        background-color: @green - 20;
        border-color: @blue - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:focus {
        outline: 0;
        background-color: @green - 20;
        border-color: @green - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:active {
        outline: 0;
        background-color: @green - 40;
        border-color: @green - 60;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
}

.btn-info {
    background-color: @yellow;
    border-color: @yellow - 20;
    &:hover {
        outline: 0;
        background-color: @yellow - 20;
        border-color: @blue - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:focus {
        outline: 0;
        background-color: @yellow - 20;
        border-color: @yellow - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:active {
        outline: 0;
        background-color: @yellow - 40;
        border-color: @yellow - 60;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
}

.btn-warning {
    background-color: @orange;
    border-color: @orange - 20;
    &:hover {
        outline: 0;
        background-color: @orange - 20;
        border-color: @blue - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:focus {
        outline: 0;
        background-color: @orange - 20;
        border-color: @orange - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:active {
        outline: 0;
        background-color: @orange - 40;
        border-color: @orange - 60;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
}

.btn-danger {
    background-color: @red;
    border-color: @red - 20;
    &:hover {
        outline: 0;
        background-color: @red - 20;
        border-color: @blue - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:focus {
        outline: 0;
        background-color: @red - 20;
        border-color: @red - 40;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    &:active {
        outline: 0;
        background-color: @red - 40;
        border-color: @red - 60;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
}


/* Input Component */

.form-control {
    width: 100%;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    font-size: 14px;
    display: block;
    color: @grayDarker;
}

input.form-control {
    min-height: 20px;
    margin-bottom: 5px;
}

textarea.form-control {
    min-height: 300px;
    overflow: hidden;
}


/* NavMenu Component */

.nav-menu-h {
    padding: 2px 5px;
}

.nav-menu-v {
    padding: 5px 2px;
}

.menu-list-h {
    display: inline-block;
    padding-left: 2em;
    padding-right: 2em;
    height: 2em;
    line-height: 2em;
    font-weight: bold;
}

.menu-list-v {
    list-style-type: none;
}


/* HomeView */

.wrapper {
    /* font-size: 30px;     */
}

.header {
    position: fixed;
    top: 0px;
    z-index: 100;
    background-color: white;
    box-shadow: 0 0 5px black;
}


/* BodyView */

.body {
    padding-top: 50px;
}

.body-content {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* LoginView */
.login {
    padding-top: 50px;
    form {
        min-width: 200px;
    }
}


.left-sec {
    // background-color: green;
}

.main-sec {
    // background-color: yellow;
}
